package org.jeecg.modules.icon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @ProjectName: jeecg-boot-parent
 * @ClassName: org.jeecg.modules.icon.entity.BimGeoPic
 * @Author: zdingxin
 * @Description:
 * @Date: 2023-04-14
 * @Version: 1.0
 */
@Data
@TableName("bim_geo_pic")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bim_geo_pic对象", description="bim_geo_pic")
public class BimGeoPic implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * icon名称
     */
    @Excel(name = "icon名称", width = 15)
    @ApiModelProperty(value = "icon名称",required = true)
    @NotBlank(message = "图标名称不能为空")
    private String name;

    @ApiModelProperty(value = "图标类别（1-设备，2-车辆）字典编码(GEO_ICON_KIND)",required = true)
    @NotNull(message = "图标类别不能为空")
    @Dict(dicCode = "GEO_ICON_KIND")
    private Integer iconKind;

    /**
     * 类型，1：2D，2:3D
     */
    @Excel(name = "图标类型（3D、2D）", width = 15, dicCode = "GEO_ICON_TYPE")
    @Dict(dicCode = "GEO_ICON_TYPE")
    @ApiModelProperty(value = "图标类型（1-2D，2-3D） 字典编码(GEO_ICON_KIND)",required = true)
    @NotNull(message = "图标类型不能为空")
    private Integer type;


    @ApiModelProperty(value = "模型类型（3D:fbx、rfa）")
    private String modelType;

    /**
     * GUID
     */
    @Excel(name = "guid", width = 15)
    @ApiModelProperty(value = "guid(3D:模板ID)")
    private String guid;

    @ApiModelProperty(value = "图标url(2D)")
    private String url;

    @ApiModelProperty(value = "缩略图")
    private String thumbnail;

    /**
     * 是否启用
     */
    @Excel(name = "是否启用", width = 15)
    @ApiModelProperty(value = "启用状态(1-启用，0-禁用) 字典编码(ENABLE_FLAG)")
    @Dict(dicCode = "ENABLE_FLAG")
    private Integer enableFlag;


    /**
     * 图标描述
     */
    @Excel(name = "图标描述", width = 15)
    @ApiModelProperty(value = "图标描述")
    private String description;

    /**
     * 是否默认
     */
    @Excel(name = "是否默认", width = 15)
    @ApiModelProperty(value = "是否默认(1-是,0-否) 字典编码(DEFAULT_FLAG)")
    @Dict(dicCode = "DEFAULT_FLAG")
    private Integer defaultFlag;


    /**
     * 是否删除
     */
    @Excel(name = "是否删除", width = 15)
    @ApiModelProperty(value = "是否删除(1-正常，0-已刪除)")
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;

    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createUser;

    /**
     * 更新人
     */
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateUser;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}